#import <UIKit/UIKit.h>
#import <objc/runtime.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^ActionBlock)(void);

@interface UIButton (JMBlock)

/**
 *  UIButton添加UIControlEvents事件的block
 *
 *  @param event 事件
 *  @param action block代码
 */
- (void)handleControlEvent:(UIControlEvents)event withBlock:(ActionBlock)action;

@end

NS_ASSUME_NONNULL_END
